﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExamWeek01.Domain
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("User")]
    public class User
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int UId { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string? Account { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? UName { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool IsUse { get; set; }
        /// <summary>
        /// 组织架构
        /// </summary>
        public int IsPrr { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string? Img { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool Gender { get; set; }
    }
}